package cn.edu.nit.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * @Author xiaobai
 * @Date 2022/8/24 22:03
 * @Version 1.0.0
 */
@Data
@TableName("sys_menu")
public class Menu {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String label;
    private String name;
    private String path;
    private String component;
    private String icon;
    private Integer parent; // 父级菜单
    private Integer sort;   // 优先级
    private Integer disabled;   // 是否锁定
    @TableField(exist = false)
    private Integer relationId;
    @TableField(exist = false)
    private String roles;
    @TableField(exist = false)
    private List<Menu> children;
}
